package com.oop;

public class Test3 {
    public static void main(String[] args) {
        C c = new C();
        int a=23;
        int b=65;
        System.out.println("交换前：a="+a+" b="+b);
        c.swap(a,b);
        System.out.println("交换后：a="+a+" b="+b);
    }
}

class C{
    public void swap(int a, int b){
        int tem=a;
        a=b;
        b=tem;
        System.out.println("swap中"+"a="+a+" b="+b);
    }
}
